import axios from 'axios';

// 登录接口
export const login =(val)=> axios.post(`/api1/login`,{data:val})

// 注册接口
// export const register = (val) => axios({
//     method:'post',
//     url:'/api1/register',
//     headers: { 'content-type': 'multipart/form-data' },
//     data:val
// })

export const register = async (val) => await axios.post('/api1/register',{
    headers: { 'content-type': 'multipart/form-data' },
    data:val,
})